-- GENERATED SPELL FOR [Horde Shaman] --


function spell0_17936(pUnit, Event) --@Bloodlust,n/a--
pUnit:FullCastSpellOnTarget(6742,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17936', 30275, 1)
end

function spell1_17936(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(31764,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17936', 3000, 1)
end

function spell2_17936(pUnit, Event) --@Lightning Shield,n/a--
pUnit:FullCastSpellOnTarget(31765,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17936', 0, 1)
end

function Sorts_17936(pUnit, Event)
local choix_sorts_17936 = math.random(0, 2)
if choix_sorts_17936 == 0 then
pUnit:RegisterEvent('spell0_17936', 1, 1)
end
if choix_sorts_17936 == 1 then
pUnit:RegisterEvent('spell1_17936', 1, 1)
end
if choix_sorts_17936 == 2 then
pUnit:RegisterEvent('spell2_17936', 1, 1)
end
end

function mob17936_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17936', math.random(1500, 3000), 1)
end

function mob17936_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17936_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17936_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17936, 1, 'mob17936_Action')
RegisterUnitEvent(17936, 2, 'mob17936_Leave')
RegisterUnitEvent(17936, 3, 'mob17936_Kill')
RegisterUnitEvent(17936, 4, 'mob17936_Die')
